$(function() {
		$( "#dialog_stewardess" ).dialog({
			autoOpen: false, 
			modal:true,
			width:'auto',
			height:'auto', 
			overlay: { opacity: 0.5, background: "black" }
		});
		$( "#dialog_stay" ).dialog({
			autoOpen: false, 
			modal:true,
			width:'auto',
			height:'auto', 
			overlay: { opacity: 0.5, background: "black" }
		});
		
		$( "#dialog_fly" ).dialog({
			autoOpen: false, 
			modal:true,
			width:'auto',
			height:'auto', 
			overlay: { opacity: 0.5, background: "black" }
		});
		
		$("#add_flight").click(function(){
			$('#dialog_flight').load('dialog_flight.html');
			$("#dialog_flight").dialog('open');
		});
		
		$( "#dialog_plane" ).dialog({
			autoOpen: false, 
			modal:true,
			width:'auto',
			height:'auto', 
			overlay: { opacity: 0.5, background: "black" }
		});
		
		$("#add_plane").click(function(){
			$('#dialog_plane').load('dialog_plane.html');
			$("#dialog_plane").dialog('open');
		});
		
		$( "#flight_date" ).datepicker();
		
	});